package com.hm.ipay.dao;

import com.hm.ipay.entity.GameParticipateIn;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface GameParticipateInMapper {
    int deleteByPrimaryKey(Long id);

    int insert(GameParticipateIn record);

    int insertSelective(GameParticipateIn record);

    GameParticipateIn selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GameParticipateIn record);

    int updateByPrimaryKey(GameParticipateIn record);

    List<GameParticipateIn> selectByGameId(Long gameId);

    List<GameParticipateIn> selectByGameIdPaging(Map map);

    BigDecimal totalAmountByUserChoice(Map map);

    BigDecimal totalAmount(Long gameId);

    int countAllPart(Long gameId);

    int countAllPartByResults(Map map);

    int countAllPartByUserChoice(Map map);

    int countUserPartResult(Map map);

    int countUserPartStatus(Map map);

    int countUserPart(Map map);

    List<GameParticipateIn> selectUserPart(Map map);

    BigDecimal totalWinAmount(Long userId);
}